package design.pattern.ChainOfResponsibility.iner.impl;

import design.pattern.ChainOfResponsibility.iner.Processor;
import lombok.Setter;

public abstract class AbstractProcessor implements Processor {
  
  @Setter
  private AbstractProcessor next = null;
  
  @Override
  public void transferNextEntry() {
    // 判断链表中 是否存在下一个next
    if (this.next != null)
      this.next.entry();
  }
}
